100 most important c++ programs by Ajas Bakran

100 most important c++ programs by Ajas Bakran

Author:Ajas Bakran [Bakran, Ajas]
Language: eng
Format: mobi
Publisher: Bakran Ajas
Published: 2015-06-22T16:00:00+00:00


cout << num << " " << sqroot << '\n';

}

return 0;

}

51. Write a program to find out entered number.

#include <iostream>

using namespace std;

int main()

{

int choice;

cout << "Enter an integer number: 1 - 5 " ;

cin >> choice;

switch (choice)

{

case 1:

cout << "You entered 1.";

break;

case 2:

cout << "You entered 2.";

break;

case 3:

cout << "You entered 3.";

break;

case 4:

cout << "You entered 4.";

break;

case 5:

cout << "You entered 5.";

break;

default:

cout << "Invalid input.";

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.